#ifndef _AC_Calypso_IMAGEBUTTON
#define _AC_Calypso_IMAGEBUTTON

class ImageButton : public QAbstractButton {
	Q_OBJECT

	bool mMouseOnButton,
		mMouseButtonDown;

	QImage mNormalImage,
		mHoverImage,
		mPressedImage,
		mDisabledImage;

	ImageButton(const ImageButton&);

protected:
	void paintEvent(QPaintEvent * e);
	void enterEvent(QEvent * e);
	void leaveEvent(QEvent * e);
	void mousePressEvent(QMouseEvent * e);
	void mouseReleaseEvent(QMouseEvent * e);

public:
	ImageButton(QWidget * parent);
	~ImageButton();

	void setImages(const QString& category, const QString& name);

};

#endif